package com.sgffsg.learn.javalib.javabasic;

/**
 * 用于练习数据类型
 */
public class DataType {


    //错误初始化。
    //float f = 0.9239;

    public static void main(String[] args) {
//        int i = 128;
//        byte b = (byte) i;
//        System.out.println("Number b = " + b);

//        boolean g = true;
//        System.out.println(g == Boolean.TRUE);

//        char c = 'a';
//        byte b = (byte) c;
//        System.out.println("Number b = " + b);

        boolean b = 3*0.1==0.3;
        System.out.println("qqqq b = " + b + " 3*0.1 = " + (3 * 0.1) + " 0.3 = " + 0.3);

    }
}